<?php

declare(strict_types=1);

namespace app\controller\admin;

use app\model\admin\ApplyMoneySet;
use app\model\admin\CateModel;
use app\model\admin\MiniApply;
use app\model\admin\MiniBalanceLog;
use app\model\admin\MiniUser;
use app\model\admin\Pact;
use app\model\admin\SysMember;
use app\model\admin\SysUser;
use app\service\MemberService;
use app\service\SysUserService;
use think\facade\Db;
use think\facade\Validate;
use think\Request;

class MiniUserController extends AdminBaseController
{
    public function getUserList(Request $request)
    {
        $params = $request->param();
        $list = MiniUser::scope('where', $params)->with(['pUser'])->order('id', 'desc')->paginate([
            'list_rows' => $this->limit,
            'page' => $this->page,
            'var_page' => $this->pageVar
        ]);
        return successPage($list);
    }
}
